﻿@model Vitus.Featured.Settings.FeaturedSettings
@using Vitus.Featured.Settings
@using Orchard.Utility.Extensions;

<fieldset>
    @Html.LabelFor(m => m.Mode, T("Default Settings"))
    <select name="@Html.FieldNameFor(m => m.Mode)" id="@Html.FieldIdFor(m => m.Mode)">
        @Html.SelectOption(Model.Mode, FeaturedMode.ChooseFeatured, T("Featured content is chosen").ToString())
        @Html.SelectOption(Model.Mode, FeaturedMode.FeaturedByDefault, T("Content is featured by default").ToString())
        @Html.SelectOption(Model.Mode, FeaturedMode.AlwaysFeatured, T("Content is always featured").ToString())
    </select>
    <span class="hint">@T("Default settings of the Featured content part.")</span>
</fieldset>

<fieldset>
    @Html.LabelFor(m => m.TitlePartUsageMode, T("TitlePart Usage"))
    <select name="@Html.FieldNameFor(m => m.TitlePartUsageMode)" id="@Html.FieldIdFor(m => m.TitlePartUsageMode)">
        @Html.SelectOption(Model.TitlePartUsageMode, FieldDependencyMode.Disallow, T("Disallow").ToString())
        @Html.SelectOption(Model.TitlePartUsageMode, FieldDependencyMode.Allow, T("Allow").ToString())
        @Html.SelectOption(Model.TitlePartUsageMode, FieldDependencyMode.UseAlways, T("Always Use").ToString())
    </select>
    <span class="hint">@T("Determines whether the featured title may/should be derived from the TitlePart.")</span>
</fieldset>

<fieldset>
    @Html.LabelFor(m => m.TitleMaxLength, T("Title Max Length"))
    @Html.EditorFor(m => m.TitleMaxLength)
    @Html.ValidationMessageFor(m => m.TitleMaxLength)
    <span class="hint">@T("Maximum length of a custom featured title. Leave zero for no limit.")</span>
</fieldset>

<fieldset>
    @Html.LabelFor(m => m.BodyPartUsageMode, T("BodyPart Usage"))
    <select name="@Html.FieldNameFor(m => m.BodyPartUsageMode)" id="@Html.FieldIdFor(m => m.BodyPartUsageMode)">
        @Html.SelectOption(Model.BodyPartUsageMode, FieldDependencyMode.Disallow, T("Disallow").ToString())
        @Html.SelectOption(Model.BodyPartUsageMode, FieldDependencyMode.Allow, T("Allow").ToString())
        @Html.SelectOption(Model.BodyPartUsageMode, FieldDependencyMode.UseAlways, T("Always Use").ToString())
    </select>
    <span class="hint">@T("Determines whether the featured body text may/should be derived from the BodyPart.")</span>
</fieldset>

<fieldset>
    @Html.LabelFor(m => m.BodyMaxLength, T("Body Max Length"))
    @Html.EditorFor(m => m.BodyMaxLength)
    @Html.ValidationMessageFor(m => m.BodyMaxLength)
    <span class="hint">@T("Maximum length of custom featured body text. Leave zero for no limit.")</span>
</fieldset>